package org.neuedu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.neuedu.entity.Lzwfile;
import org.neuedu.mapper.LzwfileMapper;
import org.neuedu.service.LzwfileService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 文件表 服务实现类
 * </p>
 *
 * @author lzw
 * @since 2024-11-09
 */
@Service
public class LzwfileServiceImpl extends ServiceImpl<LzwfileMapper, Lzwfile> implements LzwfileService {

    @Override
    public Lzwfile get(String md5, Long size, String type) {
        QueryWrapper<Lzwfile> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("md5",md5)
                .eq("size",size)
                .eq("type",type);
        return this.getOne(queryWrapper);
    }
}
